package jp.gr.java_conf.ryz.summarize.client.view;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.PopupPanel;

public class LoadingPanel extends PopupPanel {

	private Resources _resources = GWT.create(Resources.class);
	
	
	/**
	 * default constructor.
	 */
	public LoadingPanel()
	{
		super();
		
		init();
	}
	
	
	/**
	 * initialize.
	 */
	private void init()
	{
		Grid grid = new Grid(1, 2);
		grid.setWidget(0, 0, new Image(_resources.loading()));
		grid.setText(0, 1, "Loading...");
		add(grid);
		
		center();
	}
}
